Dan Nicolaescu <dann at ics.uci.edu>
authorGlenn Morris <rgm@gnu.org>
Sat, 1 Dec 2007 21:30:13 +0000 (21:30 +0000)
committerGlenn Morris <rgm@gnu.org>
Sat, 1 Dec 2007 21:30:13 +0000 (21:30 +0000)
(declare-function): Change to a macro.

lisp/emacs-lisp/byte-run.el

index d38641e7e4a8f22fbc6984f297e878e8220664ba..c5946d46b86b9030771503db27f58006eb48a07a 100644 (file)
@@ -103,10 +103,11 @@ The return value of this function is not used."
      (eval-and-compile
        (put ',name 'byte-optimizer 'byte-compile-inline-expand))))
 
-(defalias 'declare-function 'ignore
+(defmacro declare-function (&rest args)
   "In Emacs 22, does nothing.  In 23, it will suppress byte-compiler warnings.
 This definition is so that packages may take advantage of the
-Emacs 23 feature and still remain compatible with Emacs 22.")
+Emacs 23 feature and still remain compatible with Emacs 22."
+  nil)
 
 (defun make-obsolete (obsolete-name current-name &optional when)
   "Make the byte-compiler warn that OBSOLETE-NAME is obsolete.